<style lang="scss">
.cell{
  white-space: nowrap !important;
}
</style>

<template>
  <el-config-provider :locale="zhCn">
    <router-view></router-view>
  </el-config-provider>
</template>

<script lang="ts" setup >
import { useRoute, useRouter } from "vue-router";
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import { useStore } from "vuex";

const router = useRouter()
const route = useRoute()
const store = useStore()
store.dispatch('logIn',{}).then(()=>{
  if(route.name == 'login')
    router.push({name:'home'})
})
  
</script>